# 最低 CMake 版本要求
cmake_minimum_required(VERSION 3.10)

# 项目名称和语言设置
project(mgui LANGUAGES CXX C)

add_definitions(-DUNICODE -D_UNICODE -DSTB_IMAGE_IMPLEMENTATION)
add_subdirectory(libs/common)
add_subdirectory(libs/gui)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 添加可执行文件
add_executable(${PROJECT_NAME} m.cpp)
 
# 包含头文件目录
# target_include_directories(MathUtils PUBLIC include)
target_include_directories(${PROJECT_NAME} PRIVATE ./ include libs)

# 链接库到可执行文件
target_link_libraries(${PROJECT_NAME} PRIVATE common gui gdi32)
